package com.ywu.sentinel.standard.data;

import com.ywu.sentinel.sdk.dto.YwuSystemRuleDto;
import com.ywu.sentinel.standard.entity.YwuSystemRuleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface YwuSystemRuleRepository {
    void insert(@Param("model") YwuSystemRuleEntity entity);

    YwuSystemRuleEntity getEntity(@Param("model") YwuSystemRuleEntity search);

    void delete(@Param("model") YwuSystemRuleEntity delete);

    List<YwuSystemRuleEntity> queryList(@Param("model") YwuSystemRuleDto ruleDto);

    void update(@Param("model") YwuSystemRuleEntity update);

    int queryListCount(@Param("model") YwuSystemRuleDto ruleDto);

    List<YwuSystemRuleEntity> queryPageList(@Param("model") YwuSystemRuleDto ruleDto);
}
